/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package entity.support;

/**
 *
 * @author dell
 */
public class Power 
{
//columns_______________________________________________________________________
private char[] value;
//functions_____________________________________________________________________
     //constructor______________________________________________________________
public Power()
{
     
}
public Power(String value)
{
     this.value=value.toCharArray();
}
     //getter___________________________________________________________________
public char[] getValue()
{
     return value;
}
     //setter___________________________________________________________________
public void setValue(char[] value)
{
     this.value=value;
}
public void setValueInString(String value)
{
     this.value=value.toCharArray();
}
    //operator__________________________________________________________________
public boolean getPower(String name)
{
     return false;
}
public boolean getPower(int index)
{
     return this.value[index]=='1';
}
public void setPower(String name,boolean value)
{
     
}
public void setPower(int index,boolean value)
{
     this.value[index]=(value? '0':'1');
}
     //toString_________________________________________________________________
@Override
public String toString()
{
     return new String(value);
}
}
